import request from '@/utils/request'


// 查询最大编号
export function getMaxNo() {
  return request({
    url: '/articleChannel/getMaxNo',
    method: 'get'
  })
}

// 查询ArticleChannel列表
export function loadDataList(query) {
	return request({
		url: '/articleChannel/loadDataList',
		method: 'get',
		params: query
	})
}
// 新增ArticleChannel
export function addArticleChannel(data) {
	return request({
		url: '/articleChannel/add',
		method: 'post',
		data: data
	})
}
//查询ArticleChannel详细
export function getArticleChannelById(articleChannelId) {
	return request({
		url: '/articleChannel/getArticleChannelById/' + articleChannelId,
		method: 'get',
	})
}
//修改ArticleChannel
export function updateArticleChannelById(data,articleChannelId) {
	return request({
		url: '/articleChannel/updateArticleChannelById/'+articleChannelId,
		method: 'put',
		data: data
	})
}
//删除ArticleChannel
export function delArticleChannelById(articleChannelId) {
	return request({
		url: '/articleChannel/deleteArticleChannelById/'+articleChannelId,
		method: 'delete',
	})
}
